package com.ymttest.database.sharding.db.ext.model;

import java.util.Date;

public class DeliveryPo {

	/**
	 * id BIGINT(19) 必填<br>
	 * 流水号
	 */
	private Long id;

	/**
	 * order_id BIGINT(19) 必填<br>
	 * 订单号
	 */
	private Long orderId;

	/**
	 * bill_no VARCHAR(50) 必填<br>
	 * 面单号
	 */
	private String billNo;

	/**
	 * ymt_express_code VARCHAR(50) 必填<br>
	 * 洋码头物流公司编码
	 */
	private String ymtExpressCode;

	/**
	 * seller_id BIGINT(19) 必填<br>
	 * 买手id
	 */
	private Long sellerId;

	/**
	 * real_delivery_area INTEGER(10)<br>
	 * 实际发货地区:1-香港
	 */
	private Integer realDeliveryArea;

	/**
	 * source INTEGER(10)<br>
	 * 发货客户端请求来源
	 */
	private Integer source;

	/**
	 * section INTEGER(10) 必填<br>
	 * 发货节点:1国际段、2转运、3国内
	 */
	private Integer section;

	/**
	 * express_name VARCHAR(200) 必填<br>
	 * 物流公司名称
	 */
	private String expressName;

	/**
	 * logistics_type INTEGER(10) 必填<br>
	 * 订单配送方式
	 */
	private Integer logisticsType;

	/**
	 * offical_logistics BIT(1) 必填<br>
	 * 是否官方物流
	 */
	private Boolean officalLogistics;

	/**
	 * source_track BIT(1) 必填<br>
	 * 是否拼邮溯源订单
	 */
	private Boolean sourceTrack;

	/**
	 * deleted BIT(1) 必填<br>
	 * 是否已删除
	 */
	private Boolean deleted;
	
	/**
	 * 1.鉴别包裹
	 */
	private Integer packageType;
	
	/**
	 * 是否到达鉴别中心
	 */
	private Boolean inAuthenticateCenter;

	/**
	 * create_time TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填<br>
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * update_time TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填<br>
	 * 更新时间
	 */
	private Date updateTime;
	
	/**
	 * mobile
	 * 手机号码
	 */
	private String mobile;
	
	/**
	 * 包裹序号(多段式物流用)，一个订单下包裹序号相同的运单被认为属于同一包裹
	 */
	private Integer pkgIndex;
	
	/**
	 * 物流段序号（多段式物流用），用于标注一个包裹下各运单号段的顺序
	 */
	private Integer segmentIndex;

	/**
	 * id BIGINT(19) 必填<br>
	 * 获得 流水号
	 */
	public Long getId() {
		return id;
	}

	/**
	 * id BIGINT(19) 必填<br>
	 * 设置 流水号
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * order_id BIGINT(19) 必填<br>
	 * 获得 订单号
	 */
	public Long getOrderId() {
		return orderId;
	}

	/**
	 * order_id BIGINT(19) 必填<br>
	 * 设置 订单号
	 */
	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	/**
	 * bill_no VARCHAR(50) 必填<br>
	 * 获得 面单号
	 */
	public String getBillNo() {
		return billNo;
	}

	/**
	 * bill_no VARCHAR(50) 必填<br>
	 * 设置 面单号
	 */
	public void setBillNo(String billNo) {
		this.billNo = billNo == null ? null : billNo.trim();
	}

	/**
	 * ymt_express_code VARCHAR(50) 必填<br>
	 * 获得 洋码头物流公司编码
	 */
	public String getYmtExpressCode() {
		return ymtExpressCode;
	}

	/**
	 * ymt_express_code VARCHAR(50) 必填<br>
	 * 设置 洋码头物流公司编码
	 */
	public void setYmtExpressCode(String ymtExpressCode) {
		this.ymtExpressCode = ymtExpressCode == null ? null : ymtExpressCode
				.trim();
	}

	/**
	 * seller_id BIGINT(19) 必填<br>
	 * 获得 买手id
	 */
	public Long getSellerId() {
		return sellerId;
	}

	/**
	 * seller_id BIGINT(19) 必填<br>
	 * 设置 买手id
	 */
	public void setSellerId(Long sellerId) {
		this.sellerId = sellerId;
	}

	/**
	 * real_delivery_area INTEGER(10)<br>
	 * 实际发货地区:1-香港，2-鉴别中心发货
	 */
	public Integer getRealDeliveryArea() {
		return realDeliveryArea;
	}

	/**
	 * real_delivery_area INTEGER(10)<br>
	 * 设置 实际发货地区:1-香港
	 */
	public void setRealDeliveryArea(Integer realDeliveryArea) {
		this.realDeliveryArea = realDeliveryArea;
	}

	/**
	 * source INTEGER(10)<br>
	 * 获得 发货客户端请求来源
	 */
	public Integer getSource() {
		return source;
	}

	/**
	 * source INTEGER(10)<br>
	 * 设置 发货客户端请求来源
	 */
	public void setSource(Integer source) {
		this.source = source;
	}

	/**
	 * section INTEGER(10) 必填<br>
	 * 获得 发货节点:1国际段、2转运、3国内
	 */
	public Integer getSection() {
		return section;
	}

	/**
	 * section INTEGER(10) 必填<br>
	 * 设置 发货节点:1国际段、2转运、3国内
	 */
	public void setSection(Integer section) {
		this.section = section;
	}

	/**
	 * express_name VARCHAR(200) 必填<br>
	 * 获得 物流公司名称
	 */
	public String getExpressName() {
		return expressName;
	}

	/**
	 * express_name VARCHAR(200) 必填<br>
	 * 设置 物流公司名称
	 */
	public void setExpressName(String expressName) {
		this.expressName = expressName == null ? null : expressName.trim();
	}

	/**
	 * logistics_type INTEGER(10) 必填<br>
	 * 获得 订单配送方式
	 */
	public Integer getLogisticsType() {
		return logisticsType;
	}

	/**
	 * logistics_type INTEGER(10) 必填<br>
	 * 设置 订单配送方式
	 */
	public void setLogisticsType(Integer logisticsType) {
		this.logisticsType = logisticsType;
	}

	/**
	 * offical_logistics BIT(1) 必填<br>
	 * 获得 是否官方物流
	 */
	public Boolean getOfficalLogistics() {
		return officalLogistics;
	}

	/**
	 * offical_logistics BIT(1) 必填<br>
	 * 设置 是否官方物流
	 */
	public void setOfficalLogistics(Boolean officalLogistics) {
		this.officalLogistics = officalLogistics;
	}

	/**
	 * source_track BIT(1) 必填<br>
	 * 获得 是否拼邮溯源订单
	 */
	public Boolean getSourceTrack() {
		return sourceTrack;
	}

	/**
	 * source_track BIT(1) 必填<br>
	 * 设置 是否拼邮溯源订单
	 */
	public void setSourceTrack(Boolean sourceTrack) {
		this.sourceTrack = sourceTrack;
	}

	/**
	 * deleted BIT(1) 必填<br>
	 * 获得 是否已删除
	 */
	public Boolean getDeleted() {
		return deleted;
	}

	/**
	 * deleted BIT(1) 必填<br>
	 * 设置 是否已删除
	 */
	public void setDeleted(Boolean deleted) {
		this.deleted = deleted;
	}

	/**
	 * create_time TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填<br>
	 * 获得 创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * create_time TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填<br>
	 * 设置 创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * update_time TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填<br>
	 * 获得 更新时间
	 */
	public Date getUpdateTime() {
		return updateTime;
	}

	/**
	 * update_time TIMESTAMP(19) 默认值[CURRENT_TIMESTAMP] 必填<br>
	 * 设置 更新时间
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getPackageType() {
		return packageType;
	}

	public void setPackageType(Integer packageType) {
		this.packageType = packageType;
	}

	public Boolean getInAuthenticateCenter() {
		return inAuthenticateCenter;
	}

	public void setInAuthenticateCenter(Boolean inAuthenticateCenter) {
		this.inAuthenticateCenter = inAuthenticateCenter;
	}

	public Integer getPkgIndex() {
		return pkgIndex;
	}

	public void setPkgIndex(Integer pkgIndex) {
		this.pkgIndex = pkgIndex;
	}

	public Integer getSegmentIndex() {
		return segmentIndex;
	}

	public void setSegmentIndex(Integer segmentIndex) {
		this.segmentIndex = segmentIndex;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", id=").append(id);
		sb.append(", orderId=").append(orderId);
		sb.append(", billNo=").append(billNo);
		sb.append(", ymtExpressCode=").append(ymtExpressCode);
		sb.append(", sellerId=").append(sellerId);
		sb.append(", realDeliveryArea=").append(realDeliveryArea);
		sb.append(", source=").append(source);
		sb.append(", section=").append(section);
		sb.append(", expressName=").append(expressName);
		sb.append(", logisticsType=").append(logisticsType);
		sb.append(", officalLogistics=").append(officalLogistics);
		sb.append(", sourceTrack=").append(sourceTrack);
		sb.append(", deleted=").append(deleted);
		sb.append(", createTime=").append(createTime);
		sb.append(", updateTime=").append(updateTime);
		sb.append(", mobile=").append(this.mobile);
		sb.append(", packageType=").append(this.packageType);
		sb.append(", inAuthenticateCenter=").append(this.inAuthenticateCenter);
		
		sb.append(", pkgIndex=").append(this.pkgIndex);
		sb.append(", segmentIndex=").append(this.segmentIndex);
		sb.append("]");
		return sb.toString();
	}
}